From: Jonas Dreßler Date: Sun, 28 Jun 2020 11:06:50 +0000 (+0200) Subject: dialog: Return GLib.SOURCE_REMOVE instead of false X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~197 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0ff75941ead611154a4a45e18576939b35f52679;p=gnome-shell.git dialog: Return GLib.SOURCE_REMOVE instead of false This is more readable than just returning false. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1336 --- diff --git a/js/ui/dialog.js b/js/ui/dialog.js index 8e9fb5090..e7d462f45 100644 --- a/js/ui/dialog.js +++ b/js/ui/dialog.js @@ -1,7 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- /* exported Dialog, MessageDialogContent, ListSection, ListSectionItem */ -const { Clutter, GObject, Meta, Pango, St } = imports.gi; +const { Clutter, GLib, GObject, Meta, Pango, St } = imports.gi; function _setLabel(label, value) { label.set({ @@ -221,7 +221,7 @@ var MessageDialogContent = GObject.registerClass({ this._updateTitleStyleLater = Meta.later_add(Meta.LaterType.BEFORE_REDRAW, () => { this._updateTitleStyleLater = 0; this._title.add_style_class_name('leightweight'); - return false; + return GLib.SOURCE_REMOVE; }); }